package com.example.demos.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.math.BigInteger;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MarketDTO {

    private BigInteger uuid;
    @JsonProperty("createtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonProperty("endtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    @JsonProperty("creatername")
    private String createrName;
    @JsonProperty("endername")
    private String enderName;
    @JsonProperty("suppliername")
    private String supplierName;
    @JsonProperty("totalmoney")
    private BigDecimal totalMoney;
    private String state;
    private List<MarketDetailDTO> marketDetailList;


}
